<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
</head>
<body>
    <button>click</button>
</body>
<script>
    $("button").click(function(){
        $.ajax({
            url: 'http://127.0.0.1:8028/items',
            type: 'get',
            success:function(res) {
                console.log(res)
                console.log(res.message)
            }
        })
    })
</script>
</html>